package com.hxxy.wyp.petsLover.common.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Good {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String goodName;
    private String goodDescription;
    private double price;
    private String category;
    private String brand;
    private Long saleNumber;
    private Long inventory;
    private LocalDateTime timeOnShelves;
    private String pic;
    private Long count;
    private double score;
    private Long categoryId;
    private String isUpOrDown;

    @TableField(exist = false)
    private List<String> picList;


}
